package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysHpRoadPreConditionMapper implements RowMapper<SysHpRoadPreCondition> {
    @Override
    public SysHpRoadPreCondition mapRow(ResultSet rs, int rowNum) throws SQLException {
        SysHpRoadPreCondition sysHpRoadPreCondition = new SysHpRoadPreCondition();
        sysHpRoadPreCondition.setPredTime(rs.getString("PredTime"));
        sysHpRoadPreCondition.setSpeed(rs.getString("speed"));
        return sysHpRoadPreCondition;
    }
}
